<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生端 - 师生学习助手</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-css/layui.css">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            margin: 0;
            padding: 0;
        }
        #wrapper {
            display: flex;
            height: 100vh;
        }
        /* 左侧导航栏 */
        #sidebar {
            width: 280px;
            background-color: #2e3b4e;
            padding: 40px 20px;
            color: #fff;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }
        #sidebar ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        #sidebar li {
            padding: 18px 0;
            text-align: center;
            border-bottom: 2px solid #3c4858;
            margin-bottom: 15px;
            transition: background-color 0.3s;
        }
        #sidebar li:hover {
            background-color: #3b4b63;
            cursor: pointer;
        }
        #sidebar li a {
            text-decoration: none;
            color: #fff;
            display: block;
            font-size: 20px;
            font-weight: bold;
        }
        #sidebar li a:hover {
            color: #ff9800;
        }
        /* 右侧主内容 */
        #main-content {
            flex-grow: 1;
            padding: 40px;
            overflow-y: auto;
            background-color: #fff;
        }
        .content-section {
            display: none;
        }
        .active-section {
            display: block;
        }
        .layui-card {
            margin-bottom: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .layui-card-header {
            font-size: 22px;
            background-color: #4e5b6e;
            color: white;
            border-radius: 10px 10px 0 0;
        }
        .layui-card-body {
            padding: 30px;
        }
        .layui-btn {
            font-size: 16px;
            padding: 12px 25px;
            margin-top: 20px;
            border-radius: 8px;
            transition: background-color 0.3s;
        }
        .layui-btn:hover {
            background-color: #ff9800;
        }
    </style>
</head>
<body>

<div id="wrapper">
    <!-- 左侧导航栏 -->
    <div id="sidebar">
        <ul>
            <li><a href="#" onclick="showSection('studyPlan')">生成学习计划</a></li>
            <li><a href="#" onclick="showSection('intelligentQuestioning')">智能提问</a></li>
        </ul>
    </div>

    <!-- 右侧主内容 -->
    <div id="main-content">
        <div id="studyPlan" class="content-section active-section">
            <div class="layui-card">
                <div class="layui-card-header"><h3>生成学习计划</h3></div>
                <div class="layui-card-body">
                    <p>在这里，学生可以生成个人学习计划。</p>
                    <button class="layui-btn layui-btn-normal">生成学习计划</button>
                </div>
            </div>
        </div>

        <div id="intelligentQuestioning" class="content-section">
            <div class="layui-card">
                <div class="layui-card-header"><h3>智能提问</h3></div>
                <div class="layui-card-body">
                    <p>在这里，学生可以使用智能提问功能。</p>
                    <button class="layui-btn layui-btn-warm">开始提问</button>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/layui-js/layui.all.js"></script>
<script>
    // 切换显示不同的内容部分
    function showSection(sectionId) {
        // 隐藏所有内容部分
        const sections = document.querySelectorAll('.content-section');
        sections.forEach(function(section) {
            section.classList.remove('active-section');
        });

        // 显示选中的部分
        const activeSection = document.getElementById(sectionId);
        activeSection.classList.add('active-section');
    }
</script>

</body>
</html>
